//
//  UIView+AddGradientLayer.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 BaseBusiness. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (AddGradientLayer)
/**
 设置背景渐变色(必须先设置view的frame)
*/
- (CALayer *)zh_addGradientLayerWithColorArr:(NSArray *)colorArr
                                   locaitons:(NSArray *)locations
                                  startPoint:(CGPoint )startPoint
                                    endPoint:(CGPoint )endPoint;

@end

NS_ASSUME_NONNULL_END
